<template>
  <el-button class="mc-redirect-button" v-bind="$attrs" v-on="$listeners" @click="go"><slot></slot></el-button>
</template>

<script>
export default {
  name: 'mc-redirect-button',
  data () {
    return {

    }
  },
  props: ['href','target'],
  mounted () {

  },
  methods:{
    go:function(){
        var request = this.$magicaltool.request;
        request.util.redirect(this.href,this.target)
    }
  }
}
</script>

<style lang="scss">
.mc-redirect-button:active{
  background-color:#d9dfef;
}
</style>
